function create(obj) {
    function F() { };
    F.prototype = obj;
    return new F();
}

function create(obj) {
    const fn = {};
    fn.__proto__ = obj;
    return fn;
}